package sg.edu.nus.iss.team2s.jass.dao;

import java.util.Map;

public class DAOFactory {
	public static final int PROP_DAO = 0;
	public static final int JDBC_DAO = 1;
	public static final int HIBERNATE_DAO = 2;
	private Map daoConfig = null;
	private static DAOFactory instance = null;
	
	private DAOFactory(){
		//load the dao configuration into daoConfig Map
		//the key should be daoType|dtoType, the value is the full class name
	}
	
	public synchronized static DAOFactory getInstance(){
		if(instance == null){
			instance = new DAOFactory();
		}
		return instance;
	}
	
	public DAOInterface getDAO(String className){
		return getDAO(className, PROP_DAO);
	}
	
	public DAOInterface getDAO(String className, int daoType){
		DAOInterface dao = null;
		
		return dao;
	}
}
